home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_mtools.idb / usr / freeware / catman / u_man / cat5 / mtools.Z / mtools
Encoding:
Text File  |  1998-10-28  |  36.4 KB  |  661 lines

  1.  
  2.  
  3.  
  4.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       mtools - table of DOS    devices
  10.  
  11.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.       ////eeeettttcccc////mmmmttttoooooooollllssss....ccccoooonnnnffff and ~~~~////....mmmmttttoooooooollllssssrrrrcccc are the configuration files
  13.       for mtools. These configuration file describes the following
  14.       items:
  15.  
  16.       oooo    GGGGlllloooobbbbaaaallll ccccoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn ffffllllaaaaggggssss aaaannnndddd vvvvaaaarrrriiiiaaaabbbblllleeeessss
  17.  
  18.       oooo    PPPPeeeerrrr ddddrrrriiiivvvveeee ffffllllaaaaggggssss aaaannnndddd vvvvaaaarrrriiiiaaaabbbblllleeeessss
  19.  
  20.       oooo    CCCChhhhaaaarrrraaaacccctttteeeerrrr ttttrrrraaaannnnssssllllaaaattttiiiioooonnnn ttttaaaabbbblllleeeessss
  21.  
  22.       ////eeeettttcccc////mmmmttttoooooooollllssss....ccccoooonnnnffff is the system-wide configuration file, and
  23.       ~~~~////....mmmmttttoooooooollllssssrrrrcccc is the user's private configuration file.
  24.  
  25.  
  26.     GGGGeeeennnneeeerrrraaaallll    SSSSyyyynnnnttttaaaaxxxx
  27.       The configuration files is made up of    sections. Each section
  28.       starts with a    keyword    identifying the    section    followed by a
  29.       colon.  Then follow variable assignments and flags. Variable
  30.       assignments take the following form:
  31.  
  32.       nnnnaaaammmmeeee====vvvvaaaalllluuuueeee
  33.  
  34.       Flags    are lone keywords without an equal sign    and value
  35.       following them.  A section either ends at the    end of the
  36.       file or where    the next section begins.
  37.  
  38.       Lines    starting with a    hash (####) are comments. Newline
  39.       characters are equivalent to whitespace (except where    ending
  40.       a comment). The configuration    file is    case insensitive,
  41.       except for item enclosed in quotes (such as filenames).
  42.  
  43.  
  44.     DDDDeeeeffffaaaauuuulllltttt    vvvvaaaalllluuuueeeessss
  45.       For most platforms, mtools contains reasonable compiled-in
  46.       defaults.  You usually don't need to bother with the
  47.       configuration    file, if all you want to do with mtools    is to
  48.       access your floppy drives. On    the other hand,    the
  49.       configuration    file is    needed if you also want    to use mtools
  50.       to access your hard disk partitions and dosemu image files.
  51.  
  52.  
  53.      GGGGLLLLOOOOBBBBAAAALLLL VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  54.       Global variables may be set to 1 or to 0.
  55.  
  56.       The following    global flags are recognized:
  57.  
  58.       MMMMTTTTOOOOOOOOLLLLSSSS____SSSSKKKKIIIIPPPP____CCCCHHHHEEEECCCCKKKK
  59.            If this is set to 1, mtools skips most of its sanity
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 7/15/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  71.  
  72.  
  73.  
  74.            checks. This is needed to read some Atari disks which
  75.            have been made with the earlier ROMs, and which would
  76.            not be recognized otherwise.
  77.  
  78.       MMMMTTTTOOOOOOOOLLLLSSSS____FFFFAAAATTTT____CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY
  79.            If this is set to 1, mtools skips the fat size checks.
  80.            Some disks have a bigger    FAT than they really need to.
  81.            These are rejected if this option is not    set.
  82.  
  83.       MMMMTTTTOOOOOOOOLLLLSSSS____LLLLOOOOWWWWEEEERRRR____CCCCAAAASSSSEEEE
  84.            If this is set to 1, mtools displays all-upper-case
  85.            short filenames as lowercase. This has been done    to
  86.            allow a behavior    which is consistent with older
  87.            versions    of mtools which    didn't know about the case
  88.            bits.
  89.  
  90.       Example:  Inserting the following line into your
  91.       configuration    file instructs mtools to skip the sanity
  92.       checks:  MMMMTTTTOOOOOOOOLLLLSSSS____SSSSKKKKIIIIPPPP____CCCCHHHHEEEECCCCKKKK====1111
  93.  
  94.       Global variables may also be set via the environment:
  95.       eeeexxxxppppoooorrrrtttt MMMMTTTTOOOOOOOOLLLLSSSS____SSSSKKKKIIIIPPPP____CCCCHHHHEEEECCCCKKKK====1111
  96.  
  97.  
  98.      PPPPEEEERRRR DDDDRRRRIIIIVVVVEEEE FFFFLLLLAAAAGGGGSSSS AAAANNNNDDDD VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  99.       Per drive flags and values may be described in a drive
  100.       section. A drive section starts with ddddrrrriiiivvvveeee _d_r_i_v_e_l_e_t_t_e_r ::::
  101.  
  102.       Then follow variable-value pairs and flags.
  103.  
  104.  
  105.     GGGGeeeennnneeeerrrraaaallll    PPPPuuuurrrrppppoooosssseeee    DDDDrrrriiiivvvveeee VVVVaaaarrrriiiiaaaabbbblllleeeessss
  106.       The following    variables are available:
  107.  
  108.       ffffiiiilllleeee The name    of the file or device holding the disk image.
  109.            This is mandatory. The file name    should be enclosed in
  110.            quotes.    uuuusssseeee____xxxxddddffff    If this    is set to a non-zero value,
  111.            mtools also tries to access this    disk as    an Xdf disk.
  112.            Xdf is a    high capacity format used by OS/2. This    is off
  113.            by default.
  114.  
  115.       ppppaaaarrrrttttiiiittttiiiioooonnnn
  116.            Tells mtools to treat the drive as a partitioned
  117.            device, and to use the given partition. Only primary
  118.            partitions are accessible using this method, and    they
  119.            are numbered from 1 to 4. For logical partitions, use
  120.            the more    general    ooooffffffffsssseeeetttt variable. The ppppaaaarrrrttttiiiittttiiiioooonnnn
  121.            variable    is intended for    Syquests, ZIP drives, and
  122.            DOSEMU hdimages.    It is not recommended for hard disks
  123.            to which    direct access to partitions is available.
  124.  
  125.       ssssccccssssiiii When set    to 1, this option tells    the operating system
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 7/15/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  137.  
  138.  
  139.  
  140.            (SunOS or Solaris) that the MS-DOS filesystem exists on
  141.            an SCSI device (such as a Jaz or    a Zip drive).  On
  142.            SunOS/Solaris, these devices can't be accessed using
  143.            the read    and write syscalls, because the    OS expects
  144.            them to contain a Sun specific "disk label".
  145.            Obviously, Zip and Jaz disks don't contain any such
  146.            label as    they contain PC-style partitions.
  147.  
  148.            On Solaris, mtools needs    root privileges    to be able to
  149.            use the scsi=1 option.  Thus mtools should be installed
  150.            set uid root on Solaris if you want to access Zip/Jaz
  151.            drives.    Mtools only uses its root privileges when
  152.            issuing these SCSI ioctl's.  The    device file and    any
  153.            copied files are    still opened with the user's rights.
  154.            Moreover, mtools    drops its root privileges whenever
  155.            mtools performs "shell expansion" of a device filename
  156.            contained in its    configuration files.  For example, if
  157.            your /etc/mtools.conf file contains a line such as the
  158.            following, then the scsi=1 option does not work for
  159.            drive e:
  160.  
  161.            drive e:    file="$HOME/dosimage"
  162.  
  163.            Other drives are    not affected: in the following
  164.            example,    the scsi=1 option still    works for drive    d:
  165.  
  166.            drive e:    file="$HOME/dosimage"
  167.  
  168.            drive d:    file="/dev/zip"    scsi=1
  169.  
  170.  
  171.            However,    other lines bearing the    same drive number are
  172.            affected:
  173.  
  174.            drive e:    file="$HOME/dosimage"
  175.  
  176.            drive e:    file="/dev/zip"    scsi=1
  177.  
  178.  
  179.       ooooffffffffsssseeeetttt
  180.            Describes where in the file the MSDOS filesystem
  181.            starts. This is useful for logical partitions in    DDDDOOOOSSSSEEEEMMMMUUUU
  182.            hhhhddddiiiimmmmaaaaggggeeees, and for AAAATTTTAAAARRRRIIII ram disks. By default, this is
  183.            zero, meaning that the filesystem starts    right at the
  184.            beginning of the    device or file.
  185.  
  186.       ffffaaaatttt____bbbbiiiittttssss
  187.            The number of FAT bits. This may    be 12 or 16. This is
  188.            very rarely needed, as it can almost always be deduced
  189.            from information    in the boot sector. On the contrary,
  190.            describing the number of    fat bits may actually be
  191.            harmful if you get it wrong. You    should only use    it if
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 7/15/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  203.  
  204.  
  205.  
  206.            mtools gets the autodetected number of fat bits wrong,
  207.            or if you want to mformat a disk    with a weird number of
  208.            fat bits.
  209.  
  210.       Only the ffffiiiilllleeee    option is mandatory. The other parameters may
  211.       be left out. In that case a default value or an autodetected
  212.       value    is used.
  213.  
  214.  
  215.     DDDDrrrriiiivvvveeee GGGGeeeeoooommmmeeeettttrrrryyyy CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn
  216.       Geometry information describes the physical characteristics
  217.       about    the disk. Its has three    purposes:
  218.  
  219.       mmmmffffoooorrrrmmmmaaaatttt
  220.            The geometry information    is written into    the boot
  221.            sector of the newly made    disk. However, you may also
  222.            describe    the geometry information on the    command    line.
  223.            See mformat(1) for details.
  224.  
  225.       ffffiiiilllltttteeeerrrriiiinnnngggg
  226.            On some Unices there are    device nodes which only
  227.            support one physical geometry. The geometry is compared
  228.            to the actual geometry stored on    the boot sector    to
  229.            make sure that this device node is able to correctly
  230.            read the    disk. If the geometry doesn't match, this
  231.            drive entry fails, and the next drive entry bearing the
  232.            same drive letter is tried. See the next    section
  233.            "Supplying multiple descriptions    for a drive" for more
  234.            details on supplying several descriptions for a drive
  235.            letter.
  236.  
  237.            If no geometry information is supplied in the
  238.            configuration file, all disks are accepted. On Linux
  239.            (and on Sparc) there exist device nodes with
  240.            configurable geometry (////ddddeeeevvvv////ffffdddd0000,    ////ddddeeeevvvv////ffffdddd1111 etc), and
  241.            thus filtering is not needed (and ignored) for disk
  242.            drives.    (Mtools    still does do filtering    on plain files
  243.            (disk images) in    Linux:    this is    mainly intended    for
  244.            test purposes, as I don't have access to    a Unix which
  245.            would actually need filtering).
  246.  
  247.       iiiinnnniiiittttiiiiaaaallll ggggeeeeoooommmmeeeettttrrrryyyy
  248.            The geometry information    (if available) is also used to
  249.            set the initial geometry    on configurable    device nodes.
  250.            This initial geometry is    used to    read the boot sector,
  251.            which contains the real geometry.  If no    geometry
  252.            information is supplied in the configuration file, no
  253.            initial configuration is    done. On Linux,    this is    not
  254.            really needed either, as    the configurable devices are
  255.            able to autodetect the disk type    accurately enough (for
  256.            most common formats) to read the    boot sector.
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 7/15/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  269.  
  270.  
  271.  
  272.       Wrong    geometry information may lead to very bizarre errors.
  273.       That's why I strongly    recommend that you don't use geometry
  274.       configuration    unless you really need it.
  275.  
  276.       The following    geometry related variables are available:
  277.  
  278.       ccccyyyylllliiiinnnnddddeeeerrrrssss
  279.            The number of cylinders.
  280.  
  281.       hhhheeeeaaaaddddssss
  282.            The number of heads (sides).
  283.  
  284.       sssseeeeccccttttoooorrrrssss
  285.            The number of sectors per track.
  286.  
  287.       Example: the following drive section describes a 1.44M
  288.       drive:
  289.  
  290.            ddddrrrriiiivvvveeee aaaa::::
  291.             ffffiiiilllleeee====""""////ddddeeeevvvv////ffffdddd0000HHHH1111444444440000""""
  292.             ffffaaaatttt____bbbbiiiittttssss====11112222
  293.             ttttrrrraaaacccckkkkssss====88880000 hhhheeeeaaaaddddssss====2222 sssseeeeccccttttoooorrrrssss====11118888
  294.  
  295.       The following    shorthand geometry descriptions    are available:
  296.  
  297.       1111....44444444mmmm
  298.            high density 3 1/2 disk.    Equivalent to:    ffffaaaatttt____bbbbiiiittttssss====11112222
  299.            ttttrrrraaaacccckkkkssss====88880000 hhhheeeeaaaaddddssss====2222 sssseeeeccccttttoooorrrrssss====11118888
  300.  
  301.       1111....2222mmmm high density 5 1/4 disk.    Equivalent to:    ffffaaaatttt____bbbbiiiittttssss====11112222
  302.            ttttrrrraaaacccckkkkssss====88880000 hhhheeeeaaaaddddssss====2222 sssseeeeccccttttoooorrrrssss====11115555
  303.  
  304.       777722220000kkkk double density 3    1/2 disk. Equivalent to:  ffffaaaatttt____bbbbiiiittttssss====11112222
  305.            ttttrrrraaaacccckkkkssss====88880000 hhhheeeeaaaaddddssss====2222 sssseeeeccccttttoooorrrrssss====9999
  306.  
  307.       333366660000kkkk double density 5    1/4 disk. Equivalent to:  ffffaaaatttt____bbbbiiiittttssss====11112222
  308.            ttttrrrraaaacccckkkkssss====44440000 hhhheeeeaaaaddddssss====2222 sssseeeeccccttttoooorrrrssss====9999
  309.  
  310.       The shorthand    format descriptions may    be amended. For
  311.       example, 333366660000kkkk    sssseeeeccccttttoooorrrrssss====8888 describes a 320k disk    and is
  312.       equivalent to:  ffffaaaatttt____bbbbiiiittttssss====11112222 ttttrrrraaaacccckkkkssss====44440000    hhhheeeeaaaaddddssss====2222    sssseeeeccccttttoooorrrrssss====8888
  313.  
  314.  
  315.     OOOOppppeeeennnn FFFFllllaaaaggggssss
  316.       Moreover, the    following flags    are available:
  317.  
  318.       ssssyyyynnnncccc All i/o operations are done synchronously
  319.  
  320.       nnnnooooddddeeeellllaaaayyyy
  321.            The device or file is opened with the O_NDELAY flag.
  322.            This is needed on some non-Linux    architectures.
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                         (printed 7/15/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  335.  
  336.  
  337.  
  338.       eeeexxxxcccclllluuuussssiiiivvvveeee
  339.            The device or file is opened with the O_EXCL flag. On
  340.            Linux, this ensures exclusive access to the floppy
  341.            drive. On most other architectures, and for plain files
  342.            it has no effect    at all.
  343.  
  344.     SSSSuuuuppppppppllllyyyyiiiinnnngggg mmmmuuuullllttttiiiipppplllleeee ddddeeeessssccccrrrriiiippppttttiiiioooonnnnssss    ffffoooorrrr aaaa ddddrrrriiiivvvveeee
  345.       It is    possible to supply multiple descriptions for a drive.
  346.       In that case,    the descriptions are tried in order until one
  347.       is found that    fits. Descriptions may fail for    several
  348.       reasons:
  349.  
  350.       1111    because the geometry is not appropriate,
  351.  
  352.       2222    because there is    no disk    in the drive,
  353.  
  354.       3333    or because of other problems.
  355.  
  356.       Multiple definitions are useful when using physical devices
  357.       which    are only able to support one single disk geometry.
  358.       Example:
  359.  
  360.            ddddrrrriiiivvvveeee aaaa::::    ffffiiiilllleeee====""""////ddddeeeevvvv////ffffdddd0000HHHH1111444444440000"""" 1111....44444444mmmm
  361.            ddddrrrriiiivvvveeee aaaa::::    ffffiiiilllleeee====""""////ddddeeeevvvv////ffffdddd0000HHHH777722220000"""" 777722220000kkkk
  362.  
  363.       This instructs mtools    to use /dev/fd0H1440 for 1.44m (high
  364.       density) disks and /dev/fd0H720 for 720k (double density)
  365.       disks. On Linux, this    feature    is not really needed, as the
  366.       /dev/fd0 device is able to handle any    geometry.
  367.  
  368.       You may also use multiple drive descriptions to access both
  369.       of your physical drives through one drive letter:
  370.  
  371.            ddddrrrriiiivvvveeee zzzz::::    ffffiiiilllleeee====""""////ddddeeeevvvv////ffffdddd0000""""
  372.            ddddrrrriiiivvvveeee zzzz::::    ffffiiiilllleeee====""""////ddddeeeevvvv////ffffdddd1111""""
  373.  
  374.       With this description, mmmmddddiiiirrrr zzzz:::: accesses your first physical
  375.       drive    if it contains a disk. If the first drive doesn't
  376.       contain a disk, mtools checks    the second drive.
  377.  
  378.       When using multiple configuration files, drive descriptions
  379.       in the files parsed last override descriptions for the same
  380.       drive    in earlier files. In order to avoid this, use the
  381.       ddddrrrriiiivvvveeee++++ or ++++ddddrrrriiiivvvveeee keywords instead of ddddrrrriiiivvvveeee . The first adds
  382.       a description    to the end of the list (will be    tried last),
  383.       and the first    adds it    to the start of    the list.
  384.  
  385.  
  386.      CCCCHHHHAAAARRRRAAAACCCCTTTTEEEERRRR TTTTRRRRAAAANNNNSSSSLLLLAAAATTTTIIIIOOOONNNN TTTTAAAABBBBLLLLEEEESSSS
  387.       If you live in the USA, in Western Europe or in Australia,
  388.       you may skip this section.
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                         (printed 7/15/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  401.  
  402.  
  403.  
  404.     IIIInnnnttttrrrroooodddduuuuccccttttiiiioooonnnn
  405.       DOS uses a different character code mapping than Unix. 7-bit
  406.       characters still have    the same meaning, only characters with
  407.       the eight bit    set are    affected. To make matters worse, there
  408.       are several translation tables available depending on    the
  409.       country where    you are. The appearance    of the characters is
  410.       defined using    code pages. These code pages aren't the    same
  411.       for all countries. For instance, some    code pages don't
  412.       contain upper    case accented characters. On the other hand,
  413.       some code pages contain characters which don't exist in
  414.       Unix,    such as    certain    line-drawing characters    or accented
  415.       consonants used by some Eastern European countries. This
  416.       affects two things, relating to filenames:
  417.  
  418.  
  419.       uuuuppppppppeeeerrrr    ccccaaaasssseeee cccchhhhaaaarrrraaaacccctttteeeerrrrssss
  420.            In short    names, only upper case characters are allowed.
  421.            This also holds for accented characters.    For instance,
  422.            in a code page which doesn't contain accented uppercase
  423.            characters, the accented    lowercase characters get
  424.            transformed into    their unaccented counterparts.
  425.  
  426.       lllloooonnnngggg ffffiiiilllleeee nnnnaaaammmmeeeessss
  427.            Micro$oft has finally come to their senses and uses a
  428.            more standard mapping for the long file names. They use
  429.            Unicode,    which is basically a 32    bit version of ASCII.
  430.            Its first 256 characters    are identical to Unix ASCII.
  431.            Thus, the code page also    affects    the correspondence
  432.            between the codes used in long names and    those used in
  433.            short names
  434.  
  435.  
  436.       Mtools considers the filenames entered on the    command    line
  437.       as having the    Unix mapping, and translates the characters to
  438.       get short names.  By default,    code page 850 is used with the
  439.       Swiss    uppercase/lowercase mapping. I chose this code page,
  440.       because its set of existing characters most closely matches
  441.       Unix's. Moreover, this code page covers most characters in
  442.       use in the USA, Australia and    Western    Europe.    However, it is
  443.       still    possible to chose a different mapping. There are two
  444.       methods: the ccccoooouuuunnnnttttrrrryyyy variable    and explicit tables.
  445.  
  446.  
  447.     CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn uuuussssiiiinnnngggg CCCCoooouuuunnnnttttrrrryyyy
  448.       The CCCCOOOOUUUUNNNNTTTTRRRRYYYY variable is recommended for people which also
  449.       have access to MSDOS system files and    documentation. If you
  450.       don't    have access to these, I'd suggest you'd    rather use
  451.       explicit tables instead.
  452.  
  453.       Syntax:  CCCCOOOOUUUUNNNNTTTTRRRRYYYY====""""_c_o_u_n_t_r_y[[[[,,,,[[[[_c_o_d_e_p_a_g_e]]]],,,,_c_o_u_n_t_r_y._s_y_s]]]]""""
  454.  
  455.       This tells mtools to use a Unix-to-DOS translation table
  456.  
  457.  
  458.  
  459.      Page 7                         (printed 7/15/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  467.  
  468.  
  469.  
  470.       which    matches    _c_o_d_e_p_a_g_e and an    lowercase-to-uppercase table
  471.       for _c_o_u_n_t_r_y and to use the _c_o_u_n_t_r_y._s_y_s file to get the
  472.       lowercase-to-uppercase table.    The country code is most often
  473.       the telephone    prefix of the country. Refer to    the DOS    help
  474.       page on "country" for    more details. The _c_o_d_e_p_a_g_e and the
  475.       _c_o_u_n_t_r_y._s_y_s parameters are optional. Please don't type in
  476.       the square brackets, they are    only there to say which
  477.       parameters are optional. The ccccoooouuuunnnnttttrrrryyyy....ssssyyyyssss file    is supplied
  478.       with MSDOS. In most cases you    don't need it, as the most
  479.       common translation tables are    compiled into mtools. So,
  480.       don't    worry if you run a Unix-only box which lacks this
  481.       file.
  482.  
  483.       If _c_o_d_e_p_a_g_e is not given, a per country default code page is
  484.       used.    If the _c_o_u_n_t_r_y._s_y_s parameter isn't given, compiled-in
  485.       defaults are used for    the lowercase-to-uppercase table. This
  486.       is useful for    other Unices than Linux, which may have    no
  487.       ccccoooouuuunnnnttttrrrryyyy....ssssyyyyssss file available online.
  488.  
  489.       The Unix-to-DOS are not contained in the _c_o_u_n_t_r_y._s_y_s file,
  490.       and thus mtools always uses compiled-in defaults for those.
  491.       Thus,    only a limited amount of code pages are    supported. If
  492.       your preferred code page is missing, or if you know the name
  493.       of the Windows 95 file which contains    this mapping, could
  494.       you please drop me a line at aaaallllaaaaiiiinnnn@@@@lllliiiinnnnuuuuxxxx....lllluuuu .
  495.  
  496.       The CCCCOOOOUUUUNNNNTTTTRRRRYYYY variable can also    be set using the environment.
  497.  
  498.  
  499.     CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn uuuussssiiiinnnngggg eeeexxxxpppplllliiiicccciiiitttt ttttrrrraaaannnnssssllllaaaattttiiiioooonnnn ttttaaaabbbblllleeeessss
  500.       Translation tables may be described in line in the
  501.       configuration    file. Two tables are needed: first the DOS-
  502.       to-Unix table, and then the Lowercase-to-Uppercase table. A
  503.       DOS-to-Unix table starts with    the ttttoooouuuunnnniiiixxxx keyword, followed
  504.       by a colon, and 128 hexadecimal numbers.  A lower-to-upper
  505.       table    starts with the    ffffuuuuccccaaaasssseeee keyword,    followed by a colon,
  506.       and 128 hexadecimal numbers.
  507.  
  508.       The tables only show the translations    for characters whose
  509.       codes    is greater than    128, because translation for lower
  510.       codes    is trivial.
  511.  
  512.       Example:
  513.  
  514.            ttttoooouuuunnnniiiixxxx::::
  515.             0000xxxxcccc7777 0000xxxxffffcccc 0000xxxxeeee9999 0000xxxxeeee2222    0000xxxxeeee4444 0000xxxxeeee0000
  516.             0000xxxxeeeeaaaa 0000xxxxeeeebbbb 0000xxxxeeee8888 0000xxxxeeeeffff    0000xxxxeeeeeeee 0000xxxxeeeecccc
  517.             0000xxxxcccc9999 0000xxxxeeee6666 0000xxxxcccc6666 0000xxxxffff4444    0000xxxxffff6666 0000xxxxffff2222
  518.             0000xxxxffffffff 0000xxxxdddd6666 0000xxxxddddcccc 0000xxxxffff8888    0000xxxxaaaa3333 0000xxxxdddd8888
  519.             0000xxxxeeee1111 0000xxxxeeeedddd 0000xxxxffff3333 0000xxxxffffaaaa    0000xxxxffff1111 0000xxxxdddd1111
  520.             0000xxxxbbbbffff 0000xxxxaaaaeeee 0000xxxxaaaacccc 0000xxxxbbbbdddd    0000xxxxbbbbcccc 0000xxxxaaaa1111
  521.             0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff    0000xxxx5555ffff 0000xxxxcccc1111
  522.  
  523.  
  524.  
  525.      Page 8                         (printed 7/15/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  533.  
  534.  
  535.  
  536.             0000xxxxaaaa9999 0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff    0000xxxx5555ffff 0000xxxxaaaa2222
  537.             0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff    0000xxxx5555ffff 0000xxxx5555ffff
  538.             0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff    0000xxxx5555ffff 0000xxxx5555ffff
  539.             0000xxxxffff0000 0000xxxxdddd0000 0000xxxxcccc9999 0000xxxxccccbbbb    0000xxxxcccc8888 0000xxxx66669999
  540.             0000xxxxccccffff 0000xxxx5555ffff 0000xxxx5555ffff 0000xxxx5555ffff    0000xxxx5555ffff 0000xxxx7777cccc
  541.             0000xxxxdddd3333 0000xxxxddddffff 0000xxxxdddd4444 0000xxxxdddd2222    0000xxxxffff5555 0000xxxxdddd5555
  542.             0000xxxxddddeeee 0000xxxxddddaaaa 0000xxxxdddd9999 0000xxxxffffdddd    0000xxxxdddddddd 0000xxxxddddeeee
  543.             0000xxxxaaaadddd 0000xxxxbbbb1111 0000xxxx5555ffff 0000xxxxbbbbeeee    0000xxxxbbbb6666 0000xxxxaaaa7777
  544.             0000xxxxbbbb0000 0000xxxxaaaa8888 0000xxxxbbbb7777 0000xxxxbbbb9999    0000xxxxbbbb3333 0000xxxxbbbb2222
  545.  
  546.            ffffuuuuccccaaaasssseeee::::
  547.             0000xxxx88880000 0000xxxx9999aaaa 0000xxxx99990000 0000xxxxbbbb6666    0000xxxx8888eeee 0000xxxxbbbb7777
  548.             0000xxxxdddd2222 0000xxxxdddd3333 0000xxxxdddd4444 0000xxxxdddd8888    0000xxxxdddd7777 0000xxxxddddeeee
  549.             0000xxxx99990000 0000xxxx99992222 0000xxxx99992222 0000xxxxeeee2222    0000xxxx99999999 0000xxxxeeee3333
  550.             0000xxxx55559999 0000xxxx99999999 0000xxxx9999aaaa 0000xxxx9999dddd    0000xxxx9999cccc 0000xxxx9999dddd
  551.             0000xxxxbbbb5555 0000xxxxdddd6666 0000xxxxeeee0000 0000xxxxeeee9999    0000xxxxaaaa5555 0000xxxxaaaa5555
  552.             0000xxxxaaaa8888 0000xxxxaaaa9999 0000xxxxaaaaaaaa 0000xxxxaaaabbbb    0000xxxxaaaacccc 0000xxxxaaaadddd
  553.             0000xxxxbbbb0000 0000xxxxbbbb1111 0000xxxxbbbb2222 0000xxxxbbbb3333    0000xxxxbbbb4444 0000xxxxbbbb5555
  554.             0000xxxxbbbb8888 0000xxxxbbbb9999 0000xxxxbbbbaaaa 0000xxxxbbbbbbbb    0000xxxxbbbbcccc 0000xxxxbbbbdddd
  555.             0000xxxxcccc0000 0000xxxxcccc1111 0000xxxxcccc2222 0000xxxxcccc3333    0000xxxxcccc4444 0000xxxxcccc5555
  556.             0000xxxxcccc8888 0000xxxxcccc9999 0000xxxxccccaaaa 0000xxxxccccbbbb    0000xxxxcccccccc 0000xxxxccccdddd
  557.             0000xxxxdddd1111 0000xxxxdddd1111 0000xxxxdddd2222 0000xxxxdddd3333    0000xxxxdddd4444 0000xxxx44449999
  558.             0000xxxxdddd8888 0000xxxxdddd9999 0000xxxxddddaaaa 0000xxxxddddbbbb    0000xxxxddddcccc 0000xxxxdddddddd
  559.             0000xxxxeeee0000 0000xxxxeeee1111 0000xxxxeeee2222 0000xxxxeeee3333    0000xxxxeeee5555 0000xxxxeeee5555
  560.             0000xxxxeeee8888 0000xxxxeeee9999 0000xxxxeeeeaaaa 0000xxxxeeeebbbb    0000xxxxeeeedddd 0000xxxxeeeedddd
  561.             0000xxxxffff0000 0000xxxxffff1111 0000xxxxffff2222 0000xxxxffff3333    0000xxxxffff4444 0000xxxxffff5555
  562.             0000xxxxffff8888 0000xxxxffff9999 0000xxxxffffaaaa 0000xxxxffffbbbb    0000xxxxffffcccc 0000xxxxffffdddd
  563.  
  564.       The first table maps DOS character codes to Unix character
  565.       codes. For example, the DOS character    number 129. This is a
  566.       u with to dots on top    of it. To translate it into Unix, we
  567.       look at the character    number 1 in the    first table (1 = 129 -
  568.       128).    This is    0xfc. (Beware, numbering starts    at 0).    The
  569.       second table maps lower case DOS characters to upper case
  570.       DOS characters. The same lower case u    with dots maps to
  571.       character 0x9a, which    is an uppercase    U with dots in DOS.
  572.  
  573.  
  574.     UUUUnnnniiiiccccooooddddeeee    cccchhhhaaaarrrraaaacccctttteeeerrrrssss ggggrrrreeeeaaaatttteeeerrrr tttthhhhaaaannnn    222255556666
  575.       If an    existing MSDOS name contains Unicode character greater
  576.       than 256, these are translated to underscores    or to
  577.       characters which are close in    visual appearance. For
  578.       example, accented consonants are translated into their
  579.       unaccented counterparts. This    translation is used for    mdir
  580.       and for the Unix filenames generated by mcopy. Linux does
  581.       support Unicode too, but unfortunately too few applications
  582.       support it yet to bother with    it in mtools. Most
  583.       importantly, xterm can't display Unicode yet.    If there is
  584.       sufficient demand, I might include support for Unicode in
  585.       the Unix filenames as    well.
  586.  
  587.       CCCCaaaauuuuttttiiiioooonnnn:::: When    deleting files with mtools, the    underscore
  588.  
  589.  
  590.  
  591.      Page 9                         (printed 7/15/98)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((DDDDeeeecccc 5555,,,, 1111999999995555))))         MMMMTTTTOOOOOOOOLLLLSSSS((((5555))))
  599.  
  600.  
  601.  
  602.       matches all characters which can't be    represented in Unix.
  603.       Be careful before mdel!
  604.  
  605.  
  606.      LLLLOOOOCCCCAAAATTTTIIIIOOOONNNN OOOOFFFF CCCCOOOONNNNFFFFIIIIGGGGUUUURRRRAAAATTTTIIIIOOOONNNN FFFFIIIILLLLEEEESSSS AAAANNNNDDDD PPPPAAAARRRRSSSSIIIINNNNGGGG
  607.       The configuration files are parsed in    the following order:
  608.  
  609.       1111    compiled-in defaults
  610.  
  611.       2222    ////eeeettttcccc////mmmmttttoooooooollllssss....ccccoooonnnnffff
  612.  
  613.       3333    ////eeeettttcccc////mmmmttttoooooooollllssss This    is for backwards compatibility only,
  614.            and is only parsed if mmmmttttoooooooollllssss....ccccoooonnnnffff doesn't exist.
  615.  
  616.       4444    ~~~~////....mmmmttttoooooooollllssssrrrrcccc.
  617.  
  618.       Options described in the later files override    those
  619.       described in the earlier files. Drives defined in earlier
  620.       files    persist    if they    are not    overridden in the later    files.
  621.       For instance,    drives A and B may be defined in
  622.       ////eeeettttcccc////mmmmttttoooooooollllssss....ccccoooonnnnffff and drives C    and D may be defined in
  623.       ~~~~////....mmmmttttoooooooollllssssrrrrcccc However, if ~~~~////....mmmmttttoooooooollllssssrrrrcccc also defines drive A,
  624.       this new description would override the description of drive
  625.       A in ////eeeettttcccc////mmmmttttoooooooollllssss....ccccoooonnnnffff    instead    of adding to it. If you    want
  626.       to add a new description to a    drive already described    in an
  627.       earlier file,    you need to use    either the ++++ddddrrrriiiivvvveeee or ddddrrrriiiivvvveeee++++
  628.       keyword.
  629.  
  630.  
  631.      BBBBAAAACCCCKKKKWWWWAAAARRRRDDDDSSSS CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY
  632.       The syntax described herein is new for version mmmmttttoooooooollllssss----2222....5555....4444.
  633.       The old line-oriented    syntax is still    supported. Each    line
  634.       beginning with a single letter is considered to be a drive
  635.       description using the    old syntax. Old    style and new style
  636.       drive    sections may be    mixed within the same configuration
  637.       file,    in order to make upgrading easier. Support for the old
  638.       syntax will be phased    out eventually,    and in order to
  639.       discourage its use, I    purposefully omit its description
  640.       here.
  641.  
  642.  
  643.      FFFFIIIILLLLEEEESSSS
  644.       /etc/mtools.conf, ~/.mtoolsrc
  645.  
  646.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  647.       _m_t_o_o_l_s(1)
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                         (printed 7/15/98)
  658.  
  659.  
  660.  
  661.